#include "junix.h"

int main(int argc, char **argv)
{
	char buf[1024];
	if ( ttyname_r(0,buf,1024) )
		err_sys("ttyname_r");

	printf("%s\n",buf);

    exit(0);
}

